import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";

export class OutputListItemDto {
  @ApiProperty({ example: "out_01J9ZWG2HBVX9T7K52V9" })
  id!: string;

  @ApiProperty({ example: "proj_01J9ZWG2HBVX9T7K52V8" })
  projectId!: string;

  @ApiProperty({ example: "Demo Project" })
  projectName!: string;

  @ApiProperty({ example: "user_01J9ZWG2HBVX9T7K52VA" })
  reporterId!: string;

  @ApiProperty({ example: "System Admin" })
  reporterName!: string;

  @ApiProperty({ example: 150.25 })
  value!: number;

  @ApiProperty({ description: "ISO 日期字符串", example: "2025-09-24T00:00:00.000Z" })
  date!: string;

  @ApiPropertyOptional({ description: "备注" })
  note?: string | null;
}
